//
//  ADUnifiedNativeItem.h
//  ADSDK
//
//  Created by 悦帅 on 2025/6/11.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class ADSDKError;

/// 素材枚举
typedef NS_ENUM(NSInteger, ADSDKUnifiedMaterialType) {
    kADSDKUnifiedMaterialTypeImage = 1,
    kADSDKUnifiedMaterialTypeVideo = 1,
};

NS_ASSUME_NONNULL_BEGIN
@interface ADUnifiedNativeImage : NSObject
/// 图片地址
@property (nonatomic, copy, nullable) NSString *imageUrl;
/// 图片宽
@property (nonatomic, assign) CGFloat imageWidth;
/// 图片高
@property (nonatomic, assign) CGFloat imageHeight;
@end

@interface ADUnifiedNativeVideo : NSObject
/// 封面图片
@property (nonatomic, copy, nullable) NSString *coverImageUrl;
/// 视频地址
@property (nonatomic, copy, nullable) NSString *videoUrl;
/// 封面宽
@property (nonatomic, assign) CGFloat imageWidth;
/// 封面高
@property (nonatomic, assign) CGFloat imageHeight;

@end

@interface ADUnifiedNativeItem : NSObject
/// 价格
@property (nonatomic, assign) NSInteger eCPM;
/// 广告标题
@property (nonatomic, copy, nullable) NSString *title;
/// 广告描述
@property (nonatomic, copy, nullable) NSString *text;
/// 广告图片信息
@property (nonatomic, strong, nullable) ADUnifiedNativeImage *image;
/// 视频信息
@property (nonatomic, strong, nullable) ADUnifiedNativeVideo *video;
/// 广告交互视图，要被添加到容器里面，且在最高层
@property (nonatomic, strong) UIView *adView;
/// 广告素材类型
@property (nonatomic, assign, readonly) ADSDKUnifiedMaterialType materialType;

@end

NS_ASSUME_NONNULL_END
